added indexing to migration tables;