- Replace mysqli with PDO for database connection and queries
- Create a separate method for generating PDO DSN
- Update error handling to use PDOException
- Remove unnecessary mysqli_set_charset and mysqli_select_db calls
- Add a check for the presence of the .env file in the root directory
- Update the index method to redirect to the admin page with a default value
Signed-off-by: wolfcode <37436228+wolf-leo@users.noreply.github.com>