Added timestamp to query message print statement