change ezsql to pdo