add. method sub_tokens to substitute database and table names in query strings.