update the code with db parameters