Fire is on only when relais is on
Fix sql override query