Modified db script