Updates db class