Fixed tests; Migrate scripts to multi db configs
Migrate script