Rearranged imports again. Now declaring app and database in init file. Still working on database migrations.