updated currently implemented endpoints in client rest api to use the new datastore class