Added timestamps and add messages to History database