mismatch variables conflict with database field names.

Scripts would not compile due to "camelCase" errors and some fields were renamed.