Made a connection between front and back, looking to find a way to query with an entire array as an input instead of a querying each index in a loop