Fixed elusive PDO bug where execute() was implemented incorrectly, started updating the session manager to use PDO and not raw queries. Some more complaints fixed from PHP