fix the dbscript