Fixed bug when uploaded images weren't showing sometimes.
Fixed database bug when clean installation didn't create a database table properly.