updated SQL with TEXT UNIQUE