Modified script to be used with Allura databases