Update jdbc.js

Use callbacks instead of events.
Removed some unused variables removed underscore as it was not being used.