db support, start conditionalizing for more recent versions of ruby