update db for page