diff --git a/config/database.yml b/config/database.yml
index c68c4605a5035d0c0e3038c30f3c01f8d26c363f..3b40ba589c8c0f29a9563677dafa1bfaa7db72e7 100644
--- a/config/database.yml
+++ b/config/database.yml
@@ -17,6 +17,7 @@ test:
 
 production:
   <<: *defaults
+  host: <%= ENV['PORTALMEC_DB_HOST'] %>
   database: <%= ENV['PORTALMEC_DB_NAME'] %>
   username: <%= ENV['PORTALMEC_DB_USERNAME'] %>
   password: <%= ENV['PORTALMEC_DB_PASSWORD'] %>
diff --git a/config/env_vars.sh b/config/env_vars.sh
index 297e8dfc99eb55ca72f8d1592c88260854d77667..23a1ea104a2ec9fdfe525c13636d1959810aebcd 100644
--- a/config/env_vars.sh
+++ b/config/env_vars.sh
@@ -4,17 +4,11 @@ export SECRET_TOKEN=$(rake secret)
 export SECRET_KEY_BASE=$(rake secret)
 
 ### Postgres/Active Record credentials
+export PORTALMEC_DB_HOST=localhost
 export PORTALMEC_DB_NAME=portalmec
 export PORTALMEC_DB_USERNAME=
 export PORTALMEC_DB_PASSWORD=
 
-### OrientDB credentials
-export PORTALMEC_ORIENTDB_HOST=localhost
-export PORTALMEC_ORIENTDB_DATABASE=portalmec
-export PORTALMEC_ORIENTDB_USERNAME=
-export PORTALMEC_ORIENTDB_PASSWD=
-export PORTALMEC_ORIENTDB_PORT=2480
-
 ### Dspace credentials
 export PORTALMEC_DSPACE_LOGIN=
 export PORTALMEC_DSPACE_PASSWORD=