commiting dataabase