Tweaking JDBC-settings and adding debugging support