When executing purge on a database with snapshots created from volumes
with glance metadata, it fails due to a foreign key exception.
This patch adds the table at the end of the purge and forces the use of
foreign key checks on the tests
Change-Id: I67436a8319155bb47dfa67544ccae25f337ed246
Closes-Bug: #1489523