Fix access for database config for ruby and not jruby