create all tables dependencies and set default data into the tables