Create flask app in init file
Add management code
Fixed equality typo
Load configuration into app
Add database configurations