Removed redundant IDs, and allowed for many database values to be empty.