DbFactory part 1