Small fixes
small fixes to various files
added some returns to database_tools methods
added a method to get the number of jobs per type
changed new_jobs and bugreport to be functions, not the __main__, so they are importable and executable from python
updated doc version number.