updating mysql connections