Test JDBC connection