Throw an exception when no connection has been defined for a database (fixes #620)
Merge pull request #622 from K-Phoen/issue-620

Throw an exception when no connection has been defined for a database (fixes #620)