commit database handler