Category view broken after image uploaded

Fix of category view when the category has an image.

Also fix so you can fill db with dummy data.