Adding plugin active record for ORM framework