- implement series() and db() methods to get data from database
# same implementation like SQLite plugin does, but can not be used while
# SQLite or RRD plugin enabled due to the added items methods
- fix queries for AVG calculation
- completely do not take buffered values into account, instead only use values
  stored in database