Replaced finishjobinfo with db query.

I think it works the way it should. Gulo has been problematic the whole day, making debugging harder.. I only changed parseFinishedjobinfoLine() and jobInfo(), and corrected some indentation.