Fixed dialog box spam. SQLDialogs now go in SQLFrames, which only hold
one instance of an SQLDialog at a time. Also added some scroll panes to
SQLDialogs; they should resize automatically if they're too big. There's
probably a neater way to do the resize, though.