improved db_update