commit database operation