update shell script to use config value for database name