Changes db connection