update and handle enums in api tables