Save and query dependent objects