added user id to the customer history table