collect the "created_by" field of a VM into its configuration history https://bugzilla.redhat.com/show_bug.cgi?id=896139 (Note: This bug has good examples of psql queries.)
RFE Cleanup Tool - For Removing/Cleaning DWH installation: https://bugzilla.redhat.com/show_bug.cgi?id=863757
*** Bug 1097024 has been marked as a duplicate of this bug. ***