Copy all cpdb code to one file.