database: add foreign key to boot table

fix some other issue with the mapping of Network foreign keys
tests: add test for kvm roll

first set of test for the kvm roll