more updates to db class