Added functions

- addSyncListener
- queryFromDatastore