Change db error handling to use Try functionality of Future
Fix couchspec test, fix incomplete for comprehension
improve logging of couchdb sync