commit database