Database update for chat