Using rake file to fix existing denpency problem in databse

Should run "rake dbfix: pos_denpendency" on the production server. I've tested on my local, it works.
All the courses created from duplication have this issue, I'm not sure if other courses are also duplicated