Change use of db