simple api server connecting to mongo