Quote 'key' as it's a reserved word

Gives a query error on mysql otherwise