isLiveChunk now returns live chunk index if it's found.
Changed appendChunks() to commitPendingChunks() to avoid confusion.
appedChunk() now appends chunk to pending_chunks table as it should be.