Improved sqlite data loading.