Lock is a reserved keyword in MySQL 5.5+

Lock is a reserved keyword in MySQL 5.5+ so we need to wrap the column name lock in backticks.