Change mysqli to PDO, clear html for mobile devices