Added random_string method, fixed dbe.document:create_index, cleaned up imports.