refactor db bb sync purely for speed

no more inline regex spawning, equality checks are always faster than regex