made changes to dbscript