added sqlite logging
use a count instead of value for the bee counter