generalizing for odbc