2014 copyright and mysql_real_escape_string fixes

corrected mysql_real_escape_string code
also added 2014 copyright