Read and write project details from sqlite database