package qtbase: cherry-pick upstream sql fixes

Qt 5.0.2 should be out one of these days anyway, but in the meantime
it's nice to have these fixed.