Prepare to add FlatfileProvider, refactor DBPool class.