removed more comments/dead stuff, moved parsing of json results from api into a function, fixed a long-running bug that caused the last few characters on a server to not be scanned, and changed db_stats.pl slightly to reflect out-of-date characters, rather than never-scanned characters.