Using real_escape_string on userhandler variables