add slow query api