Implement AQL and query methods