Changed installer to generate tables from entity fields