added hibernate and couchdb persistence