moving to mysqli as mysql_real_escape_string is depracated with security concerns