Added the Database interface
Refactored SessionManager
Simplified the Database interface