reopen the database if it's changed (fix ported from conary for sqlite)
reopen the database if it's changed (fix ported from conary for sqlite)

sassoftware/mint,sassoftware/mint,sassoftware/mint,sassoftware/mint,sassoftware/mint