commit data to sqlite after each index table is processed.