Read and write simple data to a sqlite database