DB: ttl can be null

Removed not-null constraint from ttl column.
Merge branch 'master' into ldap_user_auth
DB: Increase username length

Double username column length from 32 to 64 characters. Increase version
number to 1.1.1 to trigger database schema update.