Creating the CDS database