Created a layer of abstraction for the valid type checking in schema dumper

Now, connection handles the check for valid types so that each database can handle the changes individually.