updated db.open