collate.py: Add database opt. gettop, samplesize commands.