add datastore interface

This adds an interface which should take over storing the data points.