abstracting out couch base with data model