Added database test which cheks the constraints between the table
TrainingCategory and Playlist,CategoryDefinition