improved the function to import from a Sqlitefiles, and also the unit test for it