Changing main code to use config for database parameters