Added base classes for async database operations.