create 2 class
db log commit