Fixed bugs. Reorganized scripts in Migrations folder