alertsbyexpiredrev removed.

Both expired alerts and normals alerts are queried by a single function.