Refactoring Typedefs

all tables now use the forward declarations in
`helper/types.h` to name the different table types.
This should help further refactoring