commented out all the db close calls