Some database optimizations.
Bugfixes in Screens activity.