update for DB and server