Db library now has an explicit close and commit methods.