Again, thanks a lot Azat!!! Code refactoring here using promises and async/await
(PS: Visit https://github.com/jiobiagba/expressAPI-refactor for the Express version of the API code. Also, check https://github.com/jiobiagba/beBetterAtNodeJS to see my other learnings from Azat)