Set up mongodb and first REST API methods