update db and document