Added an option to source code privew dialog an option to include
table's children objects SQL (issue #517)

Minor fix on BaseRelationship and Relationship classes to correctly
invalidate envolved object's when connect or disconnect.