Statistics db

Adding a task statistics db and a web.py extension to view it. Goal of the db is to profile the tasks for performance, success and errors. I hope to enable me and others to identify issues (for example with specific vms) and performance bottlenecks