updated db script