Adding support for joined tables

This way you can fetch the children of a record easily.