gustafn
committed
on 13 Feb 16
- remove obsolete queries
- use api instead of direct calling sql