Are you using the Couchbase Lite PhoneGap plugin? On which platform?
If so, the database url is accessible in the onDeviceReady through:
cblite.getURL(function(err, url) {…});
From there you can perform CRUD operation, queries and replication operations on the
REST API.
James