Fix DATABASE_URL bug for jruby rails apps

Support dummy postgres DATABASE_URL for jruby

The "pg" gem is not included in a jruby app, so the dummy DATABASE_URL is invalid.