Migration tool for legacy ae_users database