Backports from Parabola
Created by: LukeShu
These are commits from Parabola's dbscripts that I think are upstreamable. No real theme to them, but because some of them are wide-sweeping (eg. clean up quoting), they are a good base layer to apply before backporting other changes.
I've done my best to look over them, but at least one weird thing did happen while rebasing them, so it's possible I missed something that rebased weird.
Some of this duplicates (non-backported) changes in the last patchset I submitted.
This is currently v2 of the patchset. v1 was submitted on the mailing list. I'm submitting v2 here to get a shiny little confirmation from Travis that I didn't break anything; I'm submitting it to the mailing list as well.