[sr-dev] git:3.1: imc: keep db handle open for main process