Switched id array format

After Tony's PR goes in, this PR updates the backend to take an array of ids instead of an array of objects.