implemented datastore retrieval for keys