replaced the mysql_real_escape_string function with $this->db->escape for compatibility
Merge pull request #13 from adamjm7/master

replaced the mysql_real_escape_string function with $this->db->escape fo...