Impl. alternative for QueryDefinition::username

Instead, runQuery() takes an extra argument with the username.