converted database code from mysqli to pdo
also removed some old bits of classic questions code