setup migrations and models