fix db commit