adding mongoose - still need to update api.js to use mongoose instead of native mongoclient.
fixed mongoose integration  issue (still need to replace api route logiic frm mongoclient to mongoose