move storable attributes directly into objecttype
make loading object references from the database work