Mostly rewriten

* Store queries in database instead of params
* Lazy loading of ChangeLog tabs