Add `unique` method for query/update literals

Also cleaned up the imports.