set data base correctly