Registration.php update for compatibility with Mysql 5.0