changed to new jdbc API