fixed db commit mistake