db: fail multiple statement migrations when error happens