db/commit: fix sql error