Create index.com

I had to rewrite codes for PDO because professor wanted us to use PDO instead of mysqli