updated the admin rest api to use the new admin datastore class