if (password != null && !password.isEmpty()) {
builder.password(password);
}
final HttpClient httpClient = builder.build();
final CouchDbInstance dbInstance = new StdCouchDbInstance(
httpClient);
// if the second parameter is true, the database will be created if
// it doesn't exists
db = dbInstance.createConnector(sdb, true);