Test migration and multiple databases