Add an interface for datastore.