Fix issue 4 - mysql_real_escape is not available when using mysqli driver.