reverted double Custom type handling in PostgreSQLstatement