Let the user choose the database in upgrade test
Correctly get the database name

and schema names inside of tests