Fixed several fragment DB bugs thanks to the unit testing.
Also attached DB to the rest of Jool.