Implemented query UNIQUE and setUnique().