edited db script