Add table name to time queries