Minor changes on db.q