Converted all PG gem specific code to just JDBC adapter code. Returning a Java ByteArray instead of file object on read.