Adds missing rawQueryWithFactory overload.