modified dbScript