Partially working port from storing requests in a global array to the
datastore.