switched to couchdb. needs optimizations