Changed access ID's into indexes in mongodb