String database = new BigInteger(130, random).toString(32);
RqlConnection r = RqlConnection.connect("localhost",28015);
RqlCursor cursor = r.run(r.db_create(database));
RqlObject obj = cursor.next();
assert Double.valueOf(1.0).equals(obj.getAs("created")) : "Database was not created successfully ";
cursor = r.run(r.db_list());
obj = cursor.next();
boolean found = false;
for(Object o: obj.getList()) {
if( database.equals(o)) {
found = true;