Updating table setup code (table keys not right yet), adding action insert query, removing old schema update code