Sqlite performance fix

Update page/cache/journal sizes. Use sqlite 3.8.6.