Figuring it was time to start proper documentation of this codebase, I've started with the db_fields.php file, and worked out how to use @file and @defgroup to start documenting the constants at the head of the file. This will be a long job, but it's a good time to do it because it'll help me to prune out old code.