Add date to query log