add postgres sample code