Add command to get rank of records per table