Fix some issues with parent/child relationship amongst tables.
Fix some issues with parent/child relationship amongst tables.

mirage/dyntype,mirage/orm,avsm/ocaml-orm-sqlite,mirage/orm,avsm/ocaml-orm-sqlite