postgresql implementation beginning