connects with mongoDB, created server service