First attempt of api requests and mongodb support