DB: ttl can be null

Removed not-null constraint from ttl column.