more refactoring in DataProvider.pm
a little cleanup SQLite.pm and Result.pm