make init method for mongo and change routes for todo on django