When connecting to a database, attempt to throw a more helpful exception