Lots of work on DB access and the unit library.