adapting connection to fit the one used into the other db