Added mongodb model and rest api