Refactor jdbc script tests.

Extract variables for driver, url etc.