update to connect to remote postgresql database