Changes SQL function to add new synonyms