setupRequestContext added
automated datastore creation and introdoction of the setupRequestContext function