Use async query functions instead of synchronised ones