Some fixes. Migrations. Models.