Allow connection string to be env var

If connection string starts with $, it's an environment variable.
Add script to export the connection string

Also, update sample config to reflect that.
Note that the script should be sourced, not executed in order to retain
the variable.
Update goose config and call goose from run-db-tests.sh