Updated ER, LD, and DB script