Also quote old column name during DB migration

This fixes alter table commands that didn't quote the old column name
adding test for migrations on columns using keywords
let's name the column 'select' because this is a keyword on all platforms
Merge pull request #7430 from owncloud/stable6-quote-oldcolumname

[stable6] Also quote old column name during DB migration