First, mongoose uses Promise for Async applications. In new versions it can be:
mongoose.connect("URL").then("what you need to happen after the connection is done").catch("when the error happened")
Therefore, I used promise and global to use mongoose anywhere as Async when writing mongoose.