Add day argument to average price request
Refactor message sending and make color scheme more consistent with Winthier.
Respect the days argument
Refactor database code; use material names rather than ids