Fix creation of databases
Reorganization of code
Fix classifier app
Update test app
Move templates outside app.py
Updated CommandManager