couchbase error fix, return conn
set couchbase connection as global variable