Small MySQL InnoDB Improvements

When insterting data on InnoDB tables there's no need to lock it. Just
wrap your DML in transactional statements and you're good.

Also, "type" is a reserved word of the SQL language. When used out-of-context it should be quoted.