ensured that the script receives the environment variable to choose which database to use