Change SQL when attribute is reserved key to database

Fix problem when attribute is reserved key of database, how `key` work.