Read and write to and from db end-to-end