Guesses the data's type and sets the maximum character length in a MySQL database.