Updated db script to reflect ER revisions