manage context-dependent mappings from activerecord models to database tables