Inserting sample data in respective tables and re-factoring. <Jaideep>