went with couchdb as database due to performance and json interaction. solved #2