Replaced legacy mysql real_escape_string