group rows by schema/table: closes #6