Usability improvements for db manager

Here's some fixes to a couple of small usability issues I've encountered with db manager:

- can't keep the db manager window open and minimised and continue to work on qgis with it in the background
- the sql window trips up if sql ends in a ";"
- the sql window now auto selects sensible default columns for the id and geometry column combo boxes