changed db script