New DB items and small updates.

A bunch of new JSON objects for the database, plus a few refactorings
(like changing the load pages to codex).