Create some tables, generate simple form and some associations and fix bugs