Settings: Performance optimizations

The syncing methods of sqlite are tremendously slow on
Linux and Windows at least.

Change-Id: I191e402db9aecdc153f5904e9bc9128c08fb9de4
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>