Express api hosted in Heroku. Any route that connects to the database returns a 503 (Service Unavailable). However a route that just simply returns text, such as res.send("Hello") works just fine. My connection to my DB is correct, it all works just fine in localhost.
// Doesn't work (Gives 503)
router.get("/", (req, res) => {
Quote.find().then((items) => res.json(items));
});
// Works just fine
router.get("/quote", (req, res) => {
res.send("Hello")
});