make queries compatible again to current head of Redmine
experimental support for alarms