[sr-dev] git:master:c6c5a4e2: imc: destroy db only if db_mode is not 0