Huge commit. I made it so that all of the newly added values actually work. You won't be able to get anything to run without the updated database file, though. Also did some other various fixes. This probably should have been a couple of commits.