[API][ADMIN_API]: Fix off by one in DB engine switch

When failing over DB engines it tries to access one more item than is in the DB
dictionary.

Change-Id: Ie8f5411f455dea2893334705172c54e694e1d246