clean class pdo functionality