testing mongodb and some api stuff