Save active job count to db; tests for addJob