refactor db bb sync
keep it readable
Merge pull request #32 from wunderlist/bbdbsync

refactor db bb sync purely for speed