refactor the names of functions under db/user