LegacyDatabase with lazy loading