diff --git a/lib/ORM.js b/lib/ORM.js
index <HASH>..<HASH> 100644
--- a/lib/ORM.js
+++ b/lib/ORM.js
@@ -96,6 +96,9 @@ exports.connect = function (opts, cb) {
 	if (!opts.hasOwnProperty("password")) {
 		opts.password = "";
 	}
+	if (opts.hasOwnProperty("hostname")) {
+		opts.host = opts.hostname;
+	}
 
 	var proto  = opts.protocol.replace(/:$/, '');
 	var db;
Fixes connection strings being parsed by url module to don't forget about port :) (#<I>)