Verify getDatabase() != null
Merge branch 'connection_debug' of https://github.com/jesperpedersen/pgjdbc-ng into jesperpedersen-connection_debug