updates to db class