Add query with callback