Finished up postgres integration.