Try/catch statement for pdo query.