finish data load and query api