connect to a MongoDB using mongoose and a custom service