Refactoring

1. Modified DB class as available for subclassing
2. Using new AppDB class instead of DB (with alias)
3. Take apart page.py from views.py
Fix bug : column property