setup the moels and rest framework