updated dbscript