Improved test configuration
Refactored SQLConnector slightly
Added several tests for SQLConnector.