change to a string array of the id to be set to SQL