Many DB updates

To give Brian some of the PHP to look at