Changed PDO so it actually works
Aaaand fixed the last issue