added code to deploy the postgres server and clean db