Handling DB switching in QA embedded deployments