modifed db script