change BSON fields to real relations to support eager loading