Added functionality as requested - Implements version request logging to a new 'stats' table.