Useful JDBC class and methods