Configure mongo db and rest framework