Fix db.py classes

the RunningBlock class was missing stack_id parameter, the Block class
should have had ‘image’ instead of ‘image_id’ in constructor.