Added config file for database parameters and adjusted scripts to use these values defined in config.