--Migrations for old coco data..First version..can be optimized further

There is a lot of room for improvement. Will optimize it further