added folders functionality
Replaced all MySQL functions with PDO
sorting functionality. migrated to PDO

added sorting functionalities for folders (date, video count, folder name)
changed how tokens are generated
Migrated to PDO