I am trying to fetch array data from two tables columns and compare if it matches. If the two results are the same return a message and if not save the form data to the data