log message gives wrong path where query result is stored