Updated server.js with monarch object retrieval