Updated SubselectDatabase class for corresponding changes in datbase driver.