Using configuration setting in plots.
Moving database handling from templates to routes.