More database tests.
Autogenerate Id.
If AppSettings doesn't work, use default value.
Autogenerate Id.
Added failsafe for not retrieving DefaultOwnerRole.