Remove the sqlite db close logic