simplifying db_update