new fixed errors, need to use db?or not?