Implement DatabaseManager and entities