PDO for cookielogin.php + indexfunctions.php