refactor db params