The Logic for .raw was first to create a group. The group was created by first having a join button. If the user clicks join then that button disappears and a new button appears called enter and leave. If the user enter the group they then are able to upload music into that one specific group. If they click on add song then the user will be able to fill out a form and from that form the values are placed into the correct tables in the database. the values for specific topics are stored depending if its checked as numbers using 0 = not chosen and 1 = chosen category. In order to save the values of the song that is uploaded by a specific user the database needs to save the id number along with the values in the database. This way the right music is grabbed from the database.
For the music playing part on various pages, I used wavesurfer to grab the music link stored in the database and saved in the folder which then transcribes it into a wave format for users to see. Then users can click on the play or pause button. This will triggered is the music to play. Users are also able to download songs.