Implement datastore statement support. Fully compatible with SDK 0.2.2beta