Added automatic migrations. Added controllers.