Added datastore functionality to application