Fix typo in database function log_session_user