removing db.close