Yes, the code that's generated for the custom fields needs to be "exact", it relies on the proper naming of the fields. Ideally, for formatting issues, fix them via CSS, but that's not always possible.
That error is a database error saying the fields didn't match... your code field is missing? It seems like you added a bunch of fields to the pilots table - those should be custom fields (because if you hardcode changes, you'll have troubles updating later on)