Some codechanges for obsolte mysql_* functions calls.