throw an exception with invalid connection config

if there's no driver specified - throw an exception
add tests for invalid connection config
fix connection mocks not specifying driver
explicitly log queries

with the constructor disabled to avoid the driver error - need to enable
log queries by hand
Merge pull request #3078 from AD7six/3.0-error-empty-driver

throw an exception with invalid connection config