Refactor mock and mock-plugin connection hooks

Move publish-db-connnection-info to mock-plugin
Add set-db-connection-info to mock
Add functional test for set-db-connection-info