configured postgresql in dev, testing and production