Separating admin processes & converting to PDO