add mongo setup for api