fixed default mysql port and the SQL code