this doesn't get called when deleting all scripts in reset_db, which I assume is what you want.