Refactored SessionManager to add databases as session stores