Change connection to take a postgres uri string.