crawls mysql database and creates insert queries or returns data from multiple table depending on the relationship information of the tables provided