update final db script