Reorganized code and added some PostgreSQL HDBC bindings