Refactor jdbc script tests.

Extract variables for driver, url etc.
adding missing compile dependency on hibernate-validator