update or create new phrase