Changed ip column in history table to VARBINARY(16) to make it IPv6 compatible