Added doesCubeExist api to NCubeManager and updated SQL creation code in unit test.