adjusted the serveer.js to test Mongo functionality.