Update Config.php

add protected function that checks which of the multiple connections was called