refactored jdbc test