Fixed not null constraint
Merge pull request #266 from stefk/db-fix

Fixed not null constraint