Active record implementation for a data abstraction layer