update for data base