replace deprecated method: managedQuery()