Remove potential warning
More foolproof driver set
white space
Don't load plugins when installing/upgrading
Merge pull request #1381 from ozh/db-check

Smarter check on DB version.

Also:
- unused function removed
- more foolproof syntax if user wants to specify their own DB driver