Finished updating the code and db for the advanced tracking

Added extra table to store perk count
Fixed runtime errors from adding wave data
Fixed corner case for players leaving before wave 1 is over