reorg db refs