modified create-csm.sql