updated monitor to use config.js to set up database connection