Connect to database through jdbc when using JRuby
Fix test: with sqlite in combination with JRuby timestamps are returned as a String