I am writing a proxy for postgreSQL database. For now what I do is connect a basic java socket( I am using java) and transfer the byte array to and from database( client con