Lots of year admin database queries

Needs some more testing. Also admin screen can currently only edit most
recent year, which is obviously a problem.