SqlProvider refactoring.