refactor db bb sync purely for speed

no more inline regex spawning, equality checks are always faster than regex

Before 2 runs:

![screen shot 2014-11-13 at 10 10 54 am](https://cloud.githubusercontent.com/assets/492289/5025859/f70d50a0-6b1d-11e4-9fe1-58d947ee6b21.png)
![screen shot 2014-11-13 at 10 10 43 am](https://cloud.githubusercontent.com/assets/492289/5025860/f70fa404-6b1d-11e4-88ce-d0393ce95e86.png)

After 2 runs:

![screen shot 2014-11-13 at 10 13 22 am](https://cloud.githubusercontent.com/assets/492289/5025866/071e8f4a-6b1e-11e4-82af-4b4a2abea7fd.png)
![screen shot 2014-11-13 at 10 13 03 am](https://cloud.githubusercontent.com/assets/492289/5025867/071ec60e-6b1e-11e4-8108-fcc2862b76e4.png)
![screen shot 2014-11-13 at 10 12 47 am](https://cloud.githubusercontent.com/assets/492289/5025868/072119d6-6b1e-11e4-81fb-79a1b912ea1b.png)
![screen shot 2014-11-13 at 10 11 16 am](https://cloud.githubusercontent.com/assets/492289/5025869/0726ae78-6b1e-11e4-8012-4e556f20a372.png)