Adding code to extract data from sqlite and create LSI from it.