JRuby fixes, default database environment variable