update for db