added ArrayAccess support for db record class