Enable sqlite WAL to try to solve database locked problems.
refs #2409, #2360, #2686
Merge pull request #328 from Flexget/sqlite_wal

Enable sqlite WAL to try to solve database locked problems.