Change in DB Schema and configurable query mid