Composite types with dettachable fields using graph db