fix db part2