added datastore interface which can be used for implementing writes and reads from databases