add trend graph to ng version
add triggers to update delta and daily

* plus database migration