forward between java client and postgresql