db: add 1:N parentship between build and buildset

a build can be a parent of another build via trigger,
inherit force scheduler, and rebuild button.

Trigger part is now finished. I'll work on the UI part on a following PR.