fixed socket broken connection error, ported jdbc code to ruby and misc enhancements for active record compliance suite tests