added DB stuff