Fix db params is None issue