auto-log files, and mysql table structure