code refactor: use postgres jdbc codes/logic directly for hstore/array support