Refactored for Couchbase

- Refactored project to work with Couchbase.