Fixes avatars and adds a migration script for data change