Fixing race condition in SQLite DALs.
Merge remote-tracking branch 'origin/deleteselffromlist' into More_DAL_fixes