Script to purge the Prism DB without relying on the built-in function