fixed issue with multiple mysql connections