app DB structure
Merge https://github.com/friendica/red into pending_merge