Don't lcase table and field names.

It just makes things more confusing. If people are crazy engouh to put case in
their schema/metadata, then they can type all the capital LeTtErS for
completion to work.
Some validation and error handling during connect.