guild db structure