sql update for user_logs