Added getUserVotes and getSongLength functions. Implemented them into index.php and cleaned up index.php file.