Use DB factory instead of driver