set up migrations and models