added DomainBundle and some orm mappings