Adding the function to get the top largest results. In the previous commit we were only able to add top k results. Now we can also query them from the database.