commit database class