set up models and migrations