Should've added $dbw->commit() here, hope this fixes bug 13587