Fixed MySql service up sensor connection and disconnection