Remove db.open() from db methods