glsql: Mechanism to verify migrations
This change adds functionality that allows us to verify our database migrations.
For the test execution it is possible to extend migration list with additional migrations.
Those additional migrations could include database setup statements that should be applied before migration and statements to verify result of the migration and clean up statements if needed.
Part of: #3820 (closed)