migrate db, set up models