Write back cache

Write back cahce with write ahead log works. Recovery available.