Simplify hazard getter query

One should run a significant risk computation and see if the performance of the hazard getters improves significantly. By performing some manual query I got a 2x speedup,
but perhaps it was an accident. Some more serious testing in under way. I open the code review early so that Luigi can look at it. Notice the introduction of the view uiapi.performance_risk, to be used as

 select * from uiapi.performance_risk where operation='getting input data from db';