Fix for issue "Field 'type' doesn't have a default value" in the challenge table.
Some more values that need to be set to avoid SQL warnings.
Setting default values for all database fields.
Merge pull request #1221 from annando/1411-default-value-type

Fix: "not null" fields were not set
small indentation fix
fix #1222
Merge pull request #1223 from fabrixxm/issue/1222

Issue/1222