[CRITICAL] Fixes: qonos-manage doesn't run the scripts properly

- qonos-api start-up script updates the version for db migration to the
  latest before even the scripts are run.
- this patch fixes the problem and ensures that the migration scripts
  are run before the migration version is set to the latest.

Fixes RM 5422