Bug fixes
Merge branch 'master' of https://github.com/mbrandenburger/giraffe
Added sum() function with unit test

also edited documentation in db.py