diff --git a/lib/connection.js b/lib/connection.js
index <HASH>..<HASH> 100644
--- a/lib/connection.js
+++ b/lib/connection.js
@@ -24,15 +24,16 @@ module.exports = (function () {
             this.config = _.extend(config, defaults);
         },
         ensureDB = function (database) {
+        	var dbProps = (typeof database === 'object') ? database : { name: database };
             var deferred = Q.defer();
             server.list().then(function (dbs) {
                 var dbExists = _.find(dbs, function (db) {
-                    return db.name === database.name;
+                    return db.name === dbProps.name;
                 });
                 if (dbExists) {
-                    deferred.resolve(server.use(database));
+                    deferred.resolve(server.use(dbProps));
                 } else {
-                    server.create(database).then(function (db) {
+                    server.create(dbProps).then(function (db) {
                         deferred.resolve(db);
                     });
                 }
Changed the connection config to be more like waterline where "database" is not an object but it contains the name of the database. This change is backwards compatible with previous configurations.

Example: <URL>