fixes for sql migration tutorial