Fixes adapter check for postgres.

Primary key sequence is otherwise not reset.
Fixes default capitalization in user question.
Removes unused variables.
Merge pull request #477 from opf/fix/migrations