statistic controller adaption to work with PostgreSQL. not working yet. out of memory by triple pattern analysis