db definition fixed