Moved to using postgres as the persistence layer over couchdb