Added basic data query api