Bug 918175 - Use write-ahead logging for cache.sqlite; r=Fallen