my $sql = qq(SELECT * from notifAlarmEntry ORDER BY datetime WHERE Message = 'WARNING' OR Message = 'OK NOW');