adding mySQL code, mostly experimental
started work on some lists that will track stats between database writes