[settings] add logging of queries