Moved the database.ini original config replacement to after the agent queries.
Fixes current acceptance test failure.
Merge pull request #703 from senior/maint/master/multi-node-read-db-test-failure

Moved the database.ini original config replacement to after the agent queries