commit database updates