table.select methods refactored, migration calculations done