Add database cleanup script for plugin test.

This script is useful when a test run fails for some reason and leaves behind
any remnant data that it generated.