postgres code works locally. Figured out the server url