Updated filemanager to PDO