introducing active record adapter for metamodels