Initial copy of db script.