Added function self.uniquify(list) to sort and uniquify the results of the query() function. This function should be applied in derived databases.