public function __construct($dbname, $dbuser, $dbpass)
{
$this->dbname = $dbname;
$this->contentType = array('Content-Type' => 'application/json');
$this->client = new Client('http://127.0.0.1:2480');
$this->client->setDefaultOption('auth', array($dbuser, $dbpass));
}