sample code skeleton of postgres