update to use jdbc more generically