SetAgreementFlag converted to QueryDatabase
Converted ClearRaid to QueryDatabase, added ClearAllRaids utility method