fix datahase migrations, Gem rmagic, uploader working